package wzvtc.dbad.attend.entity;


import org.springframework.data.annotation.AccessType;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

/**
 * 教师
 */
@Table("T_TEACHER")
@AccessType(AccessType.Type.FIELD)
public class Teacher {

    @Id
    private long id;

    private String name;


    private String phone;

    public Teacher(String name, String phone) {
        this.name = name;
        this.phone = phone;
    }

    public long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }
}
